/**
 * 
 */
package com.wisdytech.linkdcs.energy.dao;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wisdytech.linkdcs.energy.model.EquipmentEnergyRecord;

/**
 * <p>
 * ClassName: IEqEnergyRecordDao
 * </p>
 * <p>
 * Description: 能耗查询页面的dao层接口
 * </p>
 * <p>
 * Author: kongming
 * </p>
 * <p>
 * Date: 2017-10-16
 * </p>
 */
public interface IEqEnergyRecordDao extends BaseMapper<EquipmentEnergyRecord> {
    /**
     * 分页条件查询设备能耗查询页面信息
     * @param queryMap 查询条件
     * @return 设备能耗查询页面信息
     */
    public List<EquipmentEnergyRecord> selectEnergyRecordPage(Map<String, Object> queryMap);

    public List<EquipmentEnergyRecord> getColumn(Map<String, Object> queryMap);

    public List<EquipmentEnergyRecord> getWaterPieRate(Map<String, Object> queryMap);

    public List<EquipmentEnergyRecord> getElectricPieRate(Map<String, Object> queryMap);

    public List<EquipmentEnergyRecord> getElectricLineColumn(Map<String, Object> queryMap);

    public List<EquipmentEnergyRecord> getWaterLineColumn(Map<String, Object> queryMap);
    
    /**
     * 统计设备类型能耗时间
     * @return
     */
    public Double countEnergyTime(String type);

}
